package com.anrong.wulansdk.sdk.entity;

import java.io.Serializable;

import com.anrong.orm.db.annotation.Column;
import com.anrong.orm.db.annotation.PrimaryKey;
import com.anrong.orm.db.annotation.Table;
import com.anrong.orm.db.enums.AssignType;


/**
 * 上报信息类
 * @author cxy
 *
 */
@Table("login_info")
public class UploadInfo implements Serializable{
	
	public static final String LOG_TYPE = "logType";
	public static final String APP_KEY = "appKey";
	public static final String DEVICE_ID = "deviceId";
	public static final String ACCOUNT_KEY = "accountKey";
	public static final String APP_VERSION = "appVersion";
	public static final String IP = "ip";
	public static final String PLATFORM = "platform";
	public static final String VENDOR = "vendor";
	public static final String OS = "os";
	public static final String CARRIER = "carrier";
	public static final String NETWORK = "network";
	public static final String EVENT = "event";
	public static final String EVENT_DESC = "eventDesc";
	public static final String MAC = "mac";
	public static final String MAPPING = "mapping";
	public static final String MAPPING_DESC = "mappingDesc";
	public static final String LONGITUDE = "longitude";
	public static final String LATITUDE = "latitude";
	public static final String ALTITUDE = "altitude";
	public static final String CITY = "city";
	public static final String PROVINCE = "province";
	public static final String COUNTRY = "country";
	public static final String RECORD_TIME = "recordTime";
	public static final String SEND_TIME = "sendTime";
	public static final String AFFILIATED_ORG = "affiliatedOrg";
	public static final String AFFILIATED_AREA = "affiliatedArea";
	
	/** id */
	@PrimaryKey(AssignType.AUTO_INCREMENT)
	private long id;
	
	/**
	 * 日志源类型
	 * 由SDK填写，用于识别日志来源（IOS/Anoroid/WinPhone/WebApp)
	 */
	private String logType;
	
	/** appKey	应用标示
	 * 需到官网申请开通（暂定预留）
		Android: package 路径
		IOS: bundle id
	 */
	private String appKey;
	
	/** 设备IMEI   Android:IMEI */
	private String deviceId;
	
	/** 用户名     唯一标识 */
	private String accountKey;
	
	/** 当前应用版本 android:versionName="1.0" 例如:1.0 */
	private String appVersion;
	
	/**IP地址*/
	private String ip;
	
	/** 设备类型:Android*/
	private String platform;
	
	/**厂商机型: H30-L01M*/
	private String vendor;
	
	/** 固件版本: 4.4.2 */
	private String os;
	
	/**运营商*/
	private String carrier;
	
	/**网络类型*/
	private String network;
	
	/** 事件key
	 * start 启动
	 * app_usetime app使用时间
	 * page_remain_time 页面停留时间
	 * request_reply_time 请求响应时间
	 * model 模块使用
	 * self	 流程事件
	 * exception 异常
	 */
	private String event;
	
	/** 事件描述 */
	private String eventDesc;
	
	/** 网卡mac Mac地址:  48:5A:3F:04:33:8D */
	private String mac;
	
	/**映射格式定义*/
	private String mapping;
	
	/**映射内容*/
	private String mappingDesc;
	
	/** 经度 */
	private String longitude;
	
	/** 纬度 */
	private String latitude;
	
	/** 高度 */
	private String altitude;
	
	/**地市*/
	private String city;
	
	/**省*/
	private String province;
	
	/**国家*/
	private String country;
	
	/** 触发时间(UTC时间) long格式 */
	private long recordTime;
	
	/** 发送时间(UTC时间) long格式 */
	private long sendTime;
	
	/**
	 * 隶属组织
	 * 设备隶属的组织机构
	 */
	private String affiliatedOrg;
	
	/**
	 * 隶属区域
	 * 设备隶属的地理区域
	 */
	private String affiliatedArea;
	
	
	
	
	

	public String getLogType() {
		return logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}

	public String getAffiliatedOrg() {
		return affiliatedOrg;
	}

	public void setAffiliatedOrg(String affiliatedOrg) {
		this.affiliatedOrg = affiliatedOrg;
	}

	public String getAffiliatedArea() {
		return affiliatedArea;
	}

	public void setAffiliatedArea(String affiliatedArea) {
		this.affiliatedArea = affiliatedArea;
	}

	public UploadInfo() {
		super();
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getAccountKey() {
		return accountKey;
	}

	public void setAccountKey(String accountKey) {
		this.accountKey = accountKey;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getVendor() {
		return vendor;
	}

	public void setVendor(String vendor) {
		this.vendor = vendor;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getCarrier() {
		return carrier;
	}

	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}

	public String getNetwork() {
		return network;
	}

	public void setNetwork(String network) {
		this.network = network;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getEventDesc() {
		return eventDesc;
	}

	public void setEventDesc(String eventDesc) {
		this.eventDesc = eventDesc;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getMapping() {
		return mapping;
	}

	public void setMapping(String mapping) {
		this.mapping = mapping;
	}

	public String getMappingDesc() {
		return mappingDesc;
	}

	public void setMappingDesc(String mappingDesc) {
		this.mappingDesc = mappingDesc;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getAltitude() {
		return altitude;
	}

	public void setAltitude(String altitude) {
		this.altitude = altitude;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public long getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(long recordTime) {
		this.recordTime = recordTime;
	}

	public long getSendTime() {
		return sendTime;
	}

	public void setSendTime(long sendTime) {
		this.sendTime = sendTime;
	}

	private long getId() {
		return id;
	}

	private void setId(long id) {
		this.id = id;
	}
	
	
}
